const runtime.ptrBits
40 uses
runtime (current package)
arena.go#L568: for i := uintptr(0); i < nb; i += ptrBits {
arena.go#L570: if k > ptrBits {
arena.go#L571: k = ptrBits
mbitmap.go#L384: const ptrBits = 8 * goarch.PtrSize
mbitmap.go#L419: idx := word / ptrBits
mbitmap.go#L420: off := word % ptrBits
mbitmap.go#L424: valid := ptrBits - off
mbitmap.go#L431: mask &= 1<<(nptr&(ptrBits-1)) - 1
mbitmap.go#L466: h.mask ^= uintptr(1) << (i & (ptrBits - 1))
mbitmap.go#L509: h.mask ^= uintptr(1) << (i & (ptrBits - 1))
mbitmap.go#L744: for i := uintptr(0); i < nptrs; i += ptrBits {
mbitmap.go#L745: h = h.write(^uintptr(0), ptrBits)
mbitmap.go#L781: h.low = addr / goarch.PtrSize % ptrBits
mbitmap.go#L796: if h.valid+valid <= ptrBits {
mbitmap.go#L806: h.mask = bits >> (ptrBits - h.valid) // leftover for next word
mbitmap.go#L807: h.valid += valid - ptrBits // have h.valid+valid bits, writing ptrBits of them
mbitmap.go#L813: idx := h.addr / (ptrBits * goarch.PtrSize) % heapArenaBitmapWords
mbitmap.go#L827: h.addr += ptrBits * goarch.PtrSize
mbitmap.go#L838: for words > ptrBits {
mbitmap.go#L839: h = h.write(0, ptrBits)
mbitmap.go#L840: words -= ptrBits
mbitmap.go#L855: z := ptrBits - h.valid
mbitmap.go#L866: idx := h.addr / (ptrBits * goarch.PtrSize) % heapArenaBitmapWords
mbitmap.go#L883: h.addr += ptrBits * goarch.PtrSize
mbitmap.go#L894: idx := h.addr / (ptrBits * goarch.PtrSize) % heapArenaBitmapWords
mbitmap.go#L895: if zeros < ptrBits {
mbitmap.go#L898: } else if zeros == ptrBits {
mbitmap.go#L903: zeros -= ptrBits
mbitmap.go#L906: h.addr += ptrBits * goarch.PtrSize
mbitmap.go#L1028: if ptrs <= ptrBits { // Single small element
mbitmap.go#L1034: h = h.write(readUintptr(p), ptrBits)
mbitmap.go#L1035: p = addb(p, ptrBits/8)
mbitmap.go#L1036: ptrs -= ptrBits
mbitmap.go#L1037: if ptrs <= ptrBits {
mbitmap.go#L1046: if words <= ptrBits { // Repeated small element
mbitmap.go#L1050: for words <= ptrBits/2 {
mbitmap.go#L1071: for j > ptrBits {
mbitmap.go#L1072: h = h.write(readUintptr(p), ptrBits)
mbitmap.go#L1073: p = addb(p, ptrBits/8)
mbitmap.go#L1074: j -= ptrBits
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |